<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content=""/>
    <meta name="author" content="" />
    <title>汽车购票系统——修改个人信息成功页面</title>

    <link th:href="@{/css/order_place.css}" rel="stylesheet">
    <link th:href="@{/css/reset.css}" rel="stylesheet">
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
</head>
<body style="background: #F0F8FF">
<!-- -----头 部----- -->
<header>
    <div class="contain">
        <div class="headlt">
            <a th:href="@{/customer/index}"><img th:src="@{/image/logo.png}"></a>
        </div>
        <div class="headrg">
            <ul>
                <li><a  th:text="${customer.nick_name}">昵称</a>
                    <ul>
                        <li><a th:href="@{/customer/query(id=${customer.id})}">我的信息</a></li>
                        <li><a th:href="@{/order/index(id=${customer.id})}">我的订单</a></li>
                    </ul>
                </li>
                <li><a th:href="@{/publiz/index}">注销</a></li>
            </ul>
        </div>
    </div>
</header>

<div class="success_place" id="success_place">
    <h2>修改成功</h2>
    <p>因修改了个人信息，<span id = "sp">10</span> 秒后回到登录页面重新登录</p>
    <a th:href="@{/customer/login}" id="confirm" class="btn btn-primary btn-block">确&nbsp;&nbsp;定</a>
</div>

<!-- -----服 务----- -->
<div class="service">
    <div class="service_con">
        <div class="service01">
            <img th:src="@{/image/fuwu.png}">
            <p>7X24小时服务</p>
        </div>
        <div class="service02">
            <img th:src="@{/image/chupiao.png}">
            <p>第一时间出票</p>
        </div>
        <div class="service03">
            <img th:src="@{/image/zhifu.png}">
            <p>安全支付</p>
        </div>
        <div class="service04">
            <img th:src="@{/image/shouhou.png}">
            <p>无忧售后保障</p>
        </div>
    </div>
</div>
<footer>
    <div class="foot">
        <ul>
            <li><a href="">网站地图</a></li>
            <li><a href="">关于我们</a></li>
            <li><a href="">联系我们</a></li>
        </ul>
        <ul>
            <li><a href="">合作企业</a></li>
            <li><a href="">法律声明</a></li>
            <li><a href="">隐私政策</a></li>
        </ul>
        <ul>
            <li><a href="">帮助中心</a></li>
            <li><a href="">在线提问</a></li>
            <li><a href="">问题反馈</a></li>
        </ul>
        <div class="foot_right">
            <p class="tel">400-488-6666</p>
            <p class="online">在线客服</p>
        </div>
    </div>
    <div class="copyright">&copy;2018-11  CYL版权所有</div>
</footer>
<script>
    window.onload=function(){
        var i = document.getElementById('sp').innerHTML;
        var confirm = document.getElementById('confirm');
        function time(){
            i--;
            document.getElementById('sp').innerHTML = i;
            if(i==0){
                window.location.href = "http://localhost:8080/customer/login";
            }
        }
        setInterval(time,1000);

        confirm.onclick = function(){
            window.location.href = "http://localhost:8080/customer/login";
        }
    }
</script>
</body>
</html>